package com.audaque.springboot.foshanupload.web.webdemo.service.impl;

import com.audaque.springboot.foshanupload.web.webdemo.model.domain.Person;
import com.audaque.springboot.foshanupload.web.webdemo.service.inface.IGreeting;
import com.caucho.hessian.server.HessianServlet;

import javax.servlet.annotation.WebServlet;

/**
 * 底层是一个hession特定格式body的post请求
 */

@WebServlet(urlPatterns = "/hessian")
public class GreetingImpl extends HessianServlet implements IGreeting {

    @Override
    public Person sayHello(Person person) {
        return person;
    }
}